package com.test.repository;

import com.test.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by Jack on 6/30/2018.
 */
@Mapper
public interface UserRepository {

  User findByUserId(Long userId);

  List<User> findByName(String name);

  List<User> findByPagination(Integer pageSize);

  int insert(User... users);

  int deleteAll();
}
